import request from '@/utils/request'

export function getProjectOne(params) {
    return request({
        url: '/project/one',
        method: 'get',
        params,
    })
}

export function getProjectList(params) {
    return request({
        url: '/project/list',
        method: 'get',
        params,
    })
}

export function createProject(params) {
    return request({
        url: '/project/add',
        method: 'post',
        params
    })
}

export function swapProject(data) {
    return request({
        url: '/project/swap',
        method: 'put',
        data
    })
}